home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Gobby 0.4.7 / gobby-0.4.7.exe / {app} / share / gtksourceview-2.0 / language-specs / gtk-doc.lang < prev    next >
Extensible Markup Language  |  2008-09-09  |  4KB  |  87 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  
  4.  Author: Yevgen Muntyan <muntyan@tamu.edu>
  5.  Copyright (C) 2006-2007 Yevgen Muntyan <muntyan@tamu.edu>
  6.  
  7.  This library is free software; you can redistribute it and/or
  8.  modify it under the terms of the GNU Library General Public
  9.  License as published by the Free Software Foundation; either
  10.  version 2 of the License, or (at your option) any later version.
  11.  
  12.  This library is distributed in the hope that it will be useful,
  13.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.  Library General Public License for more details.
  16.  
  17.  You should have received a copy of the GNU Library General Public
  18.  License along with this library; if not, write to the
  19.  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20.  Boston, MA 02111-1307, USA.
  21.  
  22. -->
  23. <!-- Copyright (C) 2006-2007 - Yevgen Muntyan <muntyan@tamu.edu> -->
  24. <language id="gtk-doc" _name="gtk-doc" version="2.0" _section="Markup" hidden="true">
  25.     <styles>
  26.         <style id="inline-docs-section" _name="Inline Documentation Section" map-to="def:doc-comment"/>
  27.         <style id="function-name" _name="Function Name" map-to="def:doc-comment-element"/>
  28.         <style id="signal-name" _name="Signal Name" map-to="def:doc-comment-element"/>
  29.         <style id="property-name" _name="Property Name" map-to="def:doc-comment-element"/>
  30.         <style id="parameter" _name="Parameter" map-to="def:doc-comment-element"/>
  31.         <style id="constant" _name="Constant" map-to="def:doc-comment-element"/>
  32.         <style id="type" _name="Type" map-to="def:doc-comment-element"/>
  33.         <style id="function" _name="Function" map-to="def:doc-comment-element"/>
  34.         <style id="return" _name="Return" map-to="def:doc-comment-element"/>
  35.         <style id="since" _name="Since" map-to="def:doc-comment-element"/>
  36.     </styles>
  37.  
  38.     <definitions>
  39.       <context id="skip-asterisk">
  40.         <match>^\s*\*(?!/)\s*</match>
  41.       </context>
  42.  
  43.       <context id="inline-docs-body">
  44.         <include>
  45.           <context ref="skip-asterisk"/>
  46.           <context ref="def:in-comment"/>
  47.           <context style-ref="parameter">
  48.             <match>\@[\w_]+</match>
  49.           </context>
  50.           <context style-ref="constant">
  51.             <match>%[\w_]+</match>
  52.           </context>
  53.           <context style-ref="type">
  54.             <match>\#[\w_]+</match>
  55.           </context>
  56.           <context style-ref="function">
  57.             <match>[\w_]+\(\s*\)</match>
  58.           </context>
  59.           <context style-ref="return">
  60.             <match>(Returns|Return value)\:</match>
  61.           </context>
  62.           <context style-ref="since">
  63.             <match>Since\:</match>
  64.           </context>
  65.         </include>
  66.       </context>
  67.  
  68.       <context id="inline-docs-section" style-ref="inline-docs-section">
  69.         <start>/\*\*(?!\S)</start>
  70.         <end>\*/</end>
  71.         <include>
  72.           <context ref="skip-asterisk"/>
  73.           <context extend-parent="false">
  74.             <start>(([\w_]+\:\:[\w_-]+)|([\w_]+\:[\w_-]+)|([\w_]+))\:\s*$</start>
  75.             <include>
  76.               <context sub-pattern="2" where="start" style-ref="function-name"/>
  77.               <context sub-pattern="3" where="start" style-ref="signal-name"/>
  78.               <context sub-pattern="4" where="start" style-ref="property-name"/>
  79.               <context ref="inline-docs-body"/>
  80.             </include>
  81.           </context>
  82.           <context ref="inline-docs-body"/>
  83.         </include>
  84.       </context>
  85.     </definitions>
  86. </language>
  87.